/* 表单样式 */
//= 通用输入框样式
input, 
select,
textarea {
  padding: 4px;
}

.inputstyle,
.x-input,
._x_ipt,
.x-select,
textarea {
  max-width: 100%;
  height: 40px;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.42857143;
  color: $primary-text-color;
  background: $gf;
  border: 1px solid $main-border-color;
  border-radius: 2px;
  transition: border-color ease-in-out 0.15s;

  &:hover,
  &:focus {
    border-color: $main-color;
  }

  &:disabled,
  &:disabled:hover,
  &:disabled:focus {
    background-color: $main-bg-color;
  }

  &[readonly] {
    &,
    &:focus,
    &:hover {
      background-color: $main-bg-color;
      border-color: $ge;
    }
  }
}

select[multiple] {
  max-width: 100%;
  height: auto;
  padding: 5px;
  font-size: 12px;
  line-height: 1.42857143;
  color: $primary-text-color;
  background: $gf; 
  border: 1px solid $main-border-color;
  border-radius: 2px;
  transition: border-color ease-in-out 0.15s;

  &:hover,
  &:focus {
    border-color: $main-color;
  }
}

._x_ipt {
  height: 25px;
  padding: 2px 6px;
}

.x-select {
  appearance: none;
  padding-right: 30px;
  background: url(images/arrow.svg) 100% 50% no-repeat;
  background-size: contain;
}

textarea,
textarea.inputstyle {
  height: auto;
}

input[type=checkbox],
input[type=radio] {
  width: 18px;
  height: 18px;
  margin-top: 10px;
  margin-bottom: 10px;
  vertical-align: middle;
}

//= singlepage 头部标题, 主内容区域标题
.head-title,
.content-main h3 {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}

h2.head-title {
  // color: $g2;
  // padding: 1px 7px 2px;
  // margin: 2px 0 0;
  // @include height(42px);

  padding-left: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  border: none;
}

h3.head-title {
  border-bottom: 2px solid #e0e0e0;
}

.head-title .num,
.content-main h3 .num {
  margin: 0 2px;
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  color: #999999;
}

.custom-title {
  margin-top: 6px;
}

//= 数据表格/数据区域
.tableform {
  // margin: 5px 5px 10px;

  h4 {
    padding: 15px 15px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666666;

    // margin: 5px;
    border-top: 1px solid #e8e8e8;
  }

  h5 {
    padding: 0 5px;
    margin: 0 0 5px;
    font-size: 12px;
    color: #333333;
  }

  .first,
  .division h4 {
    border: none;
  }

  .division td a {
    *padding: 2px 5px 0 5px;
    padding: 2px 5px;
    margin: 0 3px;
    line-height: 20px;
    color: #000000;
  }

  th,
  td {
    padding-bottom: 15px;
    // padding: 7px 5px;
    font-size: 12px;
    font-weight: 300;
    vertical-align: top;
  }

  th {
    width: 120px;
    padding-top: 7px;
    padding-right: 5px;
    font-weight: normal;
    color: $main-text-color;
    text-align: right;
    white-space: nowrap;
  }

  .division td {
    // padding-top: 0;
    padding-left: 5px;
    white-space: normal;
  }

  .division.clear td,
  td.cleartd {
    padding-top: 5px;
  }

  table {
    padding: 0;
  }

  h5.head-title {
    border-bottom: 1px solid $gd;
  }

  .red {
    margin: 0 2px;
    font-weight: bold;
  }

  .intro {
    padding-left: 15px;
    color: #336699;
  }
}

.tabledform {
  tbody {
    th {
      padding-top: 0;
      line-height: 40px;
    }

    td {
      padding-top: 0;
      padding-bottom: 15px;
    }
  }
}

//= 表格标签
.tableform-tabs {
  background: $gf;

  .division {
    margin: 0;
    border: none;
  }

  form {
    padding: 15px;
  }

  .tabs {
    padding-top: 20px;
  }
}

//= 带底边线的区段
.division-bottom {
  border-bottom: 1px solid #cbd5dc;
}

//= 添加菜单
.addmenu {
  th {
    width: 70px;
    font-weight: bold;
  }

  td {
    padding-top: 3px;
  }

  a {
    display: block;
    float: left;
    padding: 3px 5px;
    margin-right: 2px;
    line-height: 23px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid $gc;
  }

  a:hover {
    text-decoration: none;
    border: 1px solid $f90;
  }

  a.current {
    font-weight: bold;
    border: 2px solid $f90;
  }
}

//= 带顶边线
.b-tp,
tr.b-tp th,
tr.b-tp td {
  padding-top: 9px;
  margin-top: 3px;
  border-top: 1px solid #e8e8e8;
}

//= 带底边线
.b-ft,
tr.b-ft th,
tr.b-ft td {
  padding-bottom: 9px;
  margin-bottom: 3px;
  border-bottom: 1px solid #e8e8e8;
}

.table-title {
  padding: 10px 5px;
}

.table-title h4 {
  display: inline;
  padding: 0;
}

//= 挂件参数配置
.widgetconfig h4 {
  padding: 5px;
  font-size: 1em;
  color: #364b7d;
}

//= 通用区段样式
.division {
  // margin: 5px;
  padding: 10px;
  line-height: normal;
  white-space: normal;

  .division {
    border: none;
  }

  .shopping_setting th {
    width: 190px;
  }

  .shop-setting th {
    width: 190px;
  }

  td label,
  div label {
    float: none;
    white-space: nowrap;
    vertical-align: middle;
  }

  .span-auto label {
    white-space: nowrap;
  }

  ul,
  li {
    list-style: none;
  }

  li {
    padding: 2px;
    overflow: hidden;
  }

  .info {
    margin-left: 5px;
    color: #b6b6b6;
  }

  h4 {
    font-size: 12px;
    color: #333333;
  }

  h3 a,
  h4 a {
    font-size: 12px;
  }
}

//= 设定标签
#tag_setter div {
  *width: 80px;
  overflow: visible;
}

.helptips {
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px dotted #ff9900;
}

//= 分隔标题
.section h4 {
  padding: 3px 10px;
  margin: 0 0 5px;
  color: #003366;
}

//= 区段中的另一段样式
.division-skin {
  background: #f8f8f8;
  border: 1px solid #dbdbdb;

  .textarea-auto {
    width: 98%;
    height: 160px;
    margin: 8px;
  }
}

.division.table-action {
  padding: 1px 3px;
  margin: 5px 7px;
}

//= 规格值
.handles {
  padding-left: 5px;
}

.t-handle-current,
.handles .cur {
  width: 80px;
  height: 25px;
  padding: 3px 15px 3px 15px;
  font-weight: bold;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  background-color: #ffffff;
  border-color: #ff9900 #dddddd #ffffff;
  border-style: solid;
  border-width: 2px 1px 1px;
}

.t-handle {
  width: 80px;
  height: 22px;
  padding: 3px 15px 3px 15px;
  text-align: center;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #dddddd;
}

//= 咨询商品
.discuss-pro {
  margin: 10px 0 5px 15px;

  ul {
    margin: 5px;
    list-style-type: none;
  }

  li {
    height: 15px;
    padding: 3px 0;
    *margin-bottom: 5px;
    clear: left;
  }
}

.discuss-pro-pic {
  width: 75px;
  height: 74px;
  margin-bottom: 6px;
  text-align: center;
  background: #ffffff;
}

//= 仿数据表格tr样式
.gridlist.rows-body {
  border: none;
}

/*  standard upload */
//= 商品上传
.swf-uploader-container {
  margin-bottom: 15px;
}

.std-upload-txt {
  display: inline-block;

  @include height(25px);

  div {
    @include height(25px);
    @include inline-block;
  }

  .browse {
    position: relative;
    cursor: pointer;
  }

  input {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    opacity: 0;
  }

  .std-loading-icon {
    width: 16px;
    height: 15px;
    margin: 0 5px;
    visibility: hidden;
    background: url(images/loading.gif) no-repeat center center;
  }
}
